import routerInfo from '@/plugins/router/routerInfo.ts';
import {RouteLocationNormalized} from "vue-router";

/**
 * @description 路由拦截 beforeEach（路由配置无数种方法，个人觉得最简便）
 * */
// 路由守衛 --》 gin 中間閒
routerInfo.beforeEach((to: RouteLocationNormalized, from: RouteLocationNormalized, next) => {
    console.log("current", from, to)
    return next();
});

routerInfo.afterEach(() => {

});

export default routerInfo;
